package game.ui.events
{
	import flash.events.*;
	
	public class RxUIEvent extends Event
	{
		private var m_data:Object;
		public static const INITIALIZED:String = "RxInitialized";
		public static const CHANGE:String = "RxChange";
		public static const HERO_LEVEL_UP:String = "HeroLevelUp";
		public static const MAP_CHANGE_COMPLETE:String = "MapChangeComplete";
		public static const CURRENCY_UPDATED:String = "CurrencyUpdated";
		public static const ABILITIES_UPDATED:String = "AbilitiesUpdated";
		public static const SCROLL_START:String = "RxScrollStart";
		public static const SCROLL_END:String = "RxScrollEnd";
		
		public function RxUIEvent(param1:String, param2:Boolean = false, param3:Boolean = false, param4:Object = null)
		{
			super(param1, param2, param3);
			this.m_data = param4;
		}
		
		override public function clone() : Event
		{
			return new RxUIEvent(type, bubbles, cancelable, this.m_data);
		}
		
		public function get data() : Object
		{
			return this.m_data;
		}
	}
}